package com.dailyblue.java.spring.boot.boot03.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nginx")
public class NginxController {
    @Value("${server.port}")
    private Integer port;
    @GetMapping
    public String a(){
        return "This is NginxController!port:"+port;
    }
}
